import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useIsCollapseStore = defineStore('isCollapse', () => {
  const isCollapse = ref<boolean>(false);
  const width = ref<number>(600);
  // console.log("xxxx",isCollapse);
  function toggleisCollapse(){
    isCollapse.value=!isCollapse.value;
    // console.log(isCollapse.value);
  }

  function changeWidth(num:number){
    width.value=num;
  }

  

  return { isCollapse,toggleisCollapse,width,changeWidth }
})
